package com.parktech.sun.domain.service.sunhz;

import com.parktech.sun.domain.model.sunhz.Industry;
import com.parktech.sun.domain.model.sunhz.IndustryCategory;
import com.parktech.sun.domain.repository.Page;
import com.parktech.sun.domain.service.BaseService;

import java.util.List;

/**
 * User: Think
 * Date: 11-1-9
 * Time: 下午2:19
 */
public interface IndustryService extends BaseService<Industry> {

    Page search(String title, Integer category, Integer publishStatus, Page page);

    List<IndustryCategory> listAllCategory();

    Page searchCategory(String title, Page page);

    IndustryCategory getByCategoryId(Long categoryId);

    void saveOrUpdateCategory(IndustryCategory industryCategory);

    List<Industry> listTop5Industry(Long id);

    Page listIndustryByCategory(Long categoryId, Page page);
}
